import { OmitPartial } from '/#/utils';
import { BasicPageParams, BasicModel, BasicFetchResult } from '/@/api/model/baseModel';

export interface BasicTemplateGroupModel {
  templateGroupId: number;
  groupName: string;
  groupDesc: string;
}

export type UpdateTemplateGroupParams = OmitPartial<BasicTemplateGroupModel, 'templateGroupId'>;

export type TemplateGroupParams = Partial<BasicTemplateGroupModel>;

export type TemplateGroupPageSearchParams = BasicPageParams & TemplateGroupParams;

export type TemplateGroupListSearchParams = TemplateGroupParams;

export type TemplateGroupModel = BasicModel & BasicTemplateGroupModel;

export type TemplateGroupPageListGetResultModel = BasicFetchResult<TemplateGroupModel>;

export type TemplateGroupListGetResultModel = TemplateGroupModel[];

/**
 * 后台开启id序列化时id类型为字符串，如果没开启id类型就是number,此处用一个动态类型代替，方便生成；
 */
export type TemplateGroupIDType = BasicTemplateGroupModel['templateGroupId'];
